package Product;


public abstract class Product {
	private Category category;
	private String name;
	private static int id_next=0;
	private int id;
	private ProductAvailability availability;
	
	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	public Product(Category aCategory, String aName){
		category = aCategory;
		name = aName;
		id=++id_next;
	}
	
	@Override
	public String toString() {
		return "Produkt: name - "+name+" id: "+id + " "+availability;
	}
	
	public void setAvailability(ProductAvailability p) {
		this.availability = p;
	
	}
}
